<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class CollageMember extends Model
{
    use HasFactory;
    protected $guarded = [];
    protected $table = 'collage_member';

    public static function deleteData($collage_id,$user_id)
    {
        return self::where(['collage_id'=>$collage_id,'user_id'=>$user_id])->delete();
    }

    public static function deleteMember($collage_id)
    {
        return self::where('collage_id',$collage_id)->delete();
    }
}
